package ${daoPackageName};

import ${domainPackageName}.${domainClassName};
import ${domainPackageName}.${domainClassName}.Field;

import pers.richard.ormybatis.annotation.DaoConfig;
import pers.richard.ormybatis.bean.sql.Where;
import pers.richard.ormybatis.dao.OrmybatisBaseDao;

/**
 * ${tableNameComment}的Dao
 */
@DaoConfig(table = "${tableName}")
public class ${daoClassName} extends OrmybatisBaseDao<${domainClassName}>{
	
	public ${domainClassName} byId(Integer id) {
		return super.selectOne(Where.create(Field.ID, id));
	}
}